﻿package com.wxsoft.business.sys.service;

import java.util.List;

import com.wxsoft.business.model.easyui.PageHelper;
import com.wxsoft.business.sys.pojo.SysMenu;

public interface ISysMenuService {
	
	public long findCount(SysMenu sysMenu);
	
	public List<SysMenu> findAll(PageHelper page,SysMenu sysMenu);
	
	public String add(SysMenu sysMenu);
	
	public String modify(SysMenu sysMenu);
	
	public String delete(SysMenu sysMenu);
	
	/**
	 * 获取菜单byuserId
	 * @param userId
	 * @return
	 */
	public List<SysMenu> getMenuByUserId(String userId);
	/**
	 * 获取该用户权限的菜单
	 * @param userId
	 * @return
	 */
	public List<SysMenu> getMenu(String userId);
	/**
	 * 获取 菜单
	 * @param userId
	 * @return
	 */
	public List<SysMenu> getMenuBy(SysMenu sysMenu) ;
	public List<SysMenu> getMenuByRole(String role_code) ;
}
